package com.hnkywl.sts.entity.xsgl;

/**
 * Created by HL on 2016/5/12.
 */

import com.hnkywl.sts.entity.cggl.Jsd;
import com.hnkywl.sts.entity.htgl.Xsht;
import com.hnkywl.sts.entity.organ.Gsjg;
import com.hnkywl.sts.entity.sfgl.Sfk;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 退款明细
 * Created by HL on 2015/9/8.
 */
@Entity
@Table(name = "T_BIZ_TKMX")
public class Tkmx implements Serializable {
    @Id
    @SequenceGenerator(name = "seqTkmx", allocationSize = 1, sequenceName = "SEQ_BIZ_TKMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqTkmx")
    private Long id;

    /**
     * 客户
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "KH_ID")
    private Gsjg kh;

    /**
     * 销售合同
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "XSHT_ID")
    private Xsht xsht;


    /**
     * 销售单
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "XSD_ID")
    private Xsd xsd;

    /**
     * 销售单明细
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "XSDMX_ID")
    private Xsmx xsmx;


    /**
     * 收付款
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "SFK_ID")
    private Sfk sfk;

    /**
     * 销售结算单
     */
    /**
     * 销售单明细
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "xsjsd_id")
    private Jsd jsd;

    /**
     * 退款金额
     */
    private Double tkje;

    /**
     * 创建时间
     */
    private Date created_date;

//==================getter=====setter===================
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Gsjg getKh() {
        return kh;
    }

    public void setKh(Gsjg kh) {
        this.kh = kh;
    }

    public Xsht getXsht() {
        return xsht;
    }

    public void setXsht(Xsht xsht) {
        this.xsht = xsht;
    }

    public Xsd getXsd() {
        return xsd;
    }

    public void setXsd(Xsd xsd) {
        this.xsd = xsd;
    }

    public Xsmx getXsmx() {
        return xsmx;
    }

    public void setXsmx(Xsmx xsmx) {
        this.xsmx = xsmx;
    }

    public Sfk getSfk() {
        return sfk;
    }

    public void setSfk(Sfk sfk) {
        this.sfk = sfk;
    }

    public Jsd getJsd() {
        return jsd;
    }

    public void setJsd(Jsd jsd) {
        this.jsd = jsd;
    }

    public Double getTkje() {
        return tkje;
    }

    public void setTkje(Double tkje) {
        this.tkje = tkje;
    }

    public Date getCreated_date() {
        return created_date;
    }

    public void setCreated_date(Date created_date) {
        this.created_date = created_date;
    }
}
